<div class="row">
    <div class="twelve columns centered">
        <?php echo validation_errors('<p class="alert label">'); ?>
        <form action="categorias" method="post" class="custom">
            <table class="responsive categories">
                <tbody>
                    <tr>
                        <th>Categoria</th>
                        <th>Modificar</th>
                        <th>Borrar</th>
                    </tr>
                    <?php foreach ($categories as $row) : ?>
                        <tr class="category">
                            <td class="text"><?php echo $row->categoria; ?></td>
                            <td class="modify"><a href="#" class="mcat small button secondary radius">Modificar</a></td>
                            <td class="delete"><a href="#" class="dcat small button alert radius">Borrar</a></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </form>
    </div>
</div>
<script>
    $('#carroceria').change(function() {
        window.location = 'add?c=' + $(this).val();
    });
</script>